import { createStore, applyMiddleware, combineReducers, compose } from "redux";
import thunk from "redux-thunk";

/* 引入拆分出去的 reducer */
import user from "./user/reducer";
import find from "./Find/reducer";
import cart from "./cart/reducer";


const composeEnxxx = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

export default createStore(
  combineReducers({
    user,
    find,
    cart
  }),
  composeEnxxx(applyMiddleware(thunk))
);
